# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-scrypt
pkgver=0.8.20
pkgrel=0
pkgdesc="Python bindings for the scrypt key derivation function"
url="https://pypi.org/project/scrypt/"
license="BSD-2-Clause"
arch="all"
depends="python3"
makedepends="python3-dev openssl1.1-compat-dev py3-setuptools"
source="https://files.pythonhosted.org/packages/source/s/scrypt/scrypt-$pkgver.tar.gz"
builddir="$srcdir/scrypt-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --prefix=/usr --root="$pkgdir"

	# do not install the tests module
	rm -r "$pkgdir"/usr/lib/python*/site-packages/scrypt/tests
}

sha512sums="
da8d34755d4b6c98dc57ff7baf17839cf2434a6d7eb9f6fdc69b3e458d41b4fc49f7fd3a5631318b82bc4b2e46dedb806035897bf1be5a4670b4120f6b46efbc  scrypt-0.8.20.tar.gz
"
